package com.xd.service.admin.XTGLY.impl;

import com.xd.Dto.IFSelectProductDto;
import com.xd.Entity.ProductEntity;
import com.xd.Mapper.ProductMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.xd.service.admin.XTGLY.LikeService;
import com.xd.vo.ProductQueryParamVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LikeServiceImpl implements LikeService {
    @Autowired
    ProductMapper productMapper;
    @Override
    public PageInfo<ProductEntity> getproductLikeService(IFSelectProductDto ifSelectProductDto) {
        PageHelper.startPage(ifSelectProductDto.getPageNum(), ifSelectProductDto.getPageSize());
        List<ProductEntity> productList = productMapper.queryProducts(ifSelectProductDto);
        return new PageInfo<>(productList);
    }



}
